package com.sskj.wallet.bean;

import com.sskj.common.util.NumberUtil;

import java.util.ArrayList;
import java.util.List;

public class WalletDetailBean {


    /**
     * list : [{"usable":"0.00","frost":"0.00","p_name":"BTC","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"ETH","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"LTC","cny_price":0},{"usable":"3.00","frost":"0.00","p_name":"AICASH","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"USDT","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"BTC","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"ETH","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"LTC","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"AICASH","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"USDT","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"BTC","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"ETH","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"LTC","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"AICASH","cny_price":0},{"usable":"0.00","frost":"0.00","p_name":"USDT","cny_price":0},{"usable":"2330.00","frost":"0.00","p_name":"LTC","cny_price":0},{"usable":"2330.00","frost":"0.00","p_name":null,"cny_price":0}]
     * toto_price : 0
     * toto_cny_pric : 0
     */

    private String toto_price;
    private String toto_cny_pric;
    private String price_tot;
    private String totol;
    private List<ListBean> list;

    public String getPrice_tot() {
        return price_tot == null ? "" : price_tot;
    }

    public void setPrice_tot(String price_tot) {
        this.price_tot = price_tot;
    }

    public String getTotol() {
        return totol == null ? "" : totol;
    }

    public void setTotol(String totol) {
        this.totol = totol;
    }

    public String getToto_price() {
        return toto_price == null ? "" : toto_price;
    }

    public void setToto_price(String toto_price) {
        this.toto_price = toto_price;
    }

    public String getToto_cny_pric() {
        return toto_cny_pric == null ? "" : toto_cny_pric;
    }

    public void setToto_cny_pric(String toto_cny_pric) {
        this.toto_cny_pric = toto_cny_pric;
    }

    public List<ListBean> getList() {
        if (list == null) {
            return new ArrayList<>();
        }
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * usable : 0.00
         * frost : 0.00
         * p_name : BTC
         * cny_price : 0
         */

        private String usable;
        private String frost;
        private String p_name;
        private String cny_price;

        public String getUsable() {
            return usable == null ? "" : usable;
        }

        public void setUsable(String usable) {
            this.usable = usable;
        }

        public String getFrost() {
            return frost == null ? "" : frost;
        }

        public void setFrost(String frost) {
            this.frost = frost;
        }

        public String getP_name() {
            return p_name == null ? "" : p_name;
        }

        public void setP_name(String p_name) {
            this.p_name = p_name;
        }

        public String getCny_price() {
            return cny_price == null ? "" : NumberUtil.keep2(cny_price);
        }

        public void setCny_price(String cny_price) {
            this.cny_price = cny_price;
        }
    }
}
